IMContext: add since annotations to the new APIs
authorBilal Elmoussaoui <bil.elmoussaoui@gmail.com>
Thu, 18 Mar 2021 21:25:38 +0000 (22:25 +0100)
committerBilal Elmoussaoui <bil.elmoussaoui@gmail.com>
Thu, 18 Mar 2021 21:25:38 +0000 (22:25 +0100)
gtk/gtkimcontext.c
gtk/gtkimcontext.h

index 84db9f09bd4343d4ae4e09f656ee236ad5380fdb..46b418ab73f2f59fb04b2a93943a28ab6506b697 100644 (file)
@@ -754,6 +754,8 @@ gtk_im_context_set_surrounding (GtkIMContext  *context,
  * string. This function is expected to be called in response to the
  * GtkIMContext::retrieve_surrounding signal, and will likely have no
  * effect if called at other times.
+ *
+ * Since: 4.2
  */
 void
 gtk_im_context_set_surrounding_with_selection (GtkIMContext  *context,
@@ -853,6 +855,8 @@ gtk_im_context_get_surrounding (GtkIMContext  *context,
  *
  * Returns: `TRUE` if surrounding text was provided; in this case
  *   you must free the result stored in `text`.
+ *
+ * Since: 4.2
  */
 gboolean
 gtk_im_context_get_surrounding_with_selection (GtkIMContext  *context,
index c9558f2ba34ea6a66be464368d0f61829148f271..d4268d7e12be920c869c4bb402f75d6bcc679bca 100644 (file)
@@ -150,14 +150,14 @@ GDK_DEPRECATED_IN_4_2_FOR(gtk_im_context_get_surrounding_with_selection)
 gboolean gtk_im_context_get_surrounding     (GtkIMContext       *context,
                                              char              **text,
                                              int                *cursor_index);
-GDK_AVAILABLE_IN_ALL
+GDK_AVAILABLE_IN_4_2
 void     gtk_im_context_set_surrounding_with_selection
                                             (GtkIMContext       *context,
                                              const char         *text,
                                              int                 len,
                                              int                 cursor_index,
                                              int                 anchor_index);
-GDK_AVAILABLE_IN_ALL
+GDK_AVAILABLE_IN_4_2
 gboolean gtk_im_context_get_surrounding_with_selection
                                             (GtkIMContext       *context,
                                              char              **text,